﻿<!DOCTYPE html>
<!-- saved from url=(0027)http://www.hnjyxh.com/zcfg/ -->
<html>
<head lang="en">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta charset="UTF-8">
    <title>珍湘酒广告语</title>
    <meta name="keywords" content="湖南省酒业协会 酒协 湖南酒业">
    <meta name="description" content="湖南省酒业协会">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <link rel="stylesheet" href="__STATIC__/home/jquery_weui/css/weui.min.css"/>
    <link rel="stylesheet" href="__STATIC__/home/jquery_weui/css/jquery-weui.min.css"/>
    {css href="__PUBLIC__static/home/css/jquery.jcrop.min.css"}
</head>
<style>
    .font-color{
        color: #000;
    }
</style>
<body>
<div class="content">
{foreach name="list" item="vo"}
    <div class="weui-cell">
        <div class="weui-cell__bd weui_cell_primary">
            <p>{$vo.username}</p>
        </div>
        <div class="weui-cell__ft">{$vo.create_time}</div>
    </div>
    <div class="weui-cells__title font-color">广告内容</div>
    <div class="weui-cells weui-cells_form">
        <div class="weui-cell">
            <div class="weui-cell__bd">
                <textarea class="weui-textarea" placeholder="" rows="2" name="advert" readonly>{$vo.advert}</textarea>
            </div>
        </div>
    </div>
{/foreach}
</div>
<span class="more" style="display: block;text-align: center;margin-top: 0.7rem;font-weight: bold;">点击加载更多</span>
<input type="hidden" class="page" value="1"/>


<script src="__STATIC__/home/jquery_weui/js/jquery-2.1.4.js"></script>
<script src="__STATIC__/home/jquery_weui/js/jquery-weui.min.js"></script>
{js href="__PUBLIC__static/home/js/jquery.jcrop.min.js" /}
{js href="__PUBLIC__static/home/js/jquery.jcrop.upload.js" /}
{js href="__PUBLIC__static/home/js/exif.js" /}
</body>
<script>
    var pages;
    $('.more').on('click',function(){
        page = $('.page').val();
        if(page == 1){
            page = $('.page').val();
        }else{
            page == pages
        }
        $.post(
            "/index/activity/zjjz_advertlist",
            {page:page},
            function(msg){
//                console.log(msg.list);
                for(var i=0; i < msg.list.length; i++){
                    var str = "<div class='weui-cell'><div class='weui-cell__bd weui_cell_primary'><p>"+msg.list[i].username+"</p></div><div class='weui-cell__ft'>"+msg.list[i].create_time+"</div></div><div class='weui-cells__title font-color'>广告内容</div><div class='weui-cells weui-cells_form'><div class='weui-cell'><div class='weui-cell__bd'><textarea class='weui-textarea' placeholder='' rows='2' name='advert' readonly>"+msg.list[i].advert+"</textarea></div></div></div>";
                    $('.content').append(str);
                }
                $('.page').val(++page);
                pages = ++page;
            },'json'
        )
    })
</script>
</html>